#ifndef __CRC_H
#define __CRC_H

//----------------------------------Include------------------------------------
//-----------------------------------------------------------------------------

//-----------------------------------Macro-------------------------------------
//-----------------------------------------------------------------------------

//----------------------------------Declare------------------------------------
unsigned short crc16(unsigned char * dataBuff, unsigned int length);
//-----------------------------------------------------------------------------
void calcrc(unsigned char frame[], unsigned char n, unsigned char *cod);
void calcrc_opposite(unsigned char frame[], unsigned char n, unsigned char *cod);
//-----------------------------------------------------------------------------

#endif
//------------------------------------EOF--------------------------------------

